<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h4 align="center">所有顾客</h4>
	<table border="1" cellpadding="3" cellspacing="0" align="center">
		<tr>
			<th>ID</th>
			<th>姓名</th>
			<th>年龄</th>
			<th>电话</th>
			<th>地址</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${requestScope.customers }" var="c">
			<tr>
				<td>${c.customerId }</td>
				<td>${c.customerName }</td>
				<td>${c.customerAge }</td>
				<td>${c.customerPhone }</td>
				<td>${c.address }</td>
				<td>
					<a href="${pageContext.request.contextPath }/customer/edit/${c.customerId}">修改</a>
					<a href="${pageContext.request.contextPath }/customer/deleteCustomer/${c.customerId}">删除</a>
				</td>
			</tr>
		</c:forEach>
	</table>
	<table align="center">
	<tr>
		<td>
			<form action="${pageContext.request.contextPath }/customer/inputCustomer" method="post"
			 style="width: 30%; margin: auto">
				<input type="submit" value="录入">
			</form>
		</td>
		<td>
			<form action="${pageContext.request.contextPath }/customer/inputCondition" method="post"
			 style="width: 30%; margin: auto">
				<input type="submit" value="查询">
			</form>
		</td>
		<td>
		<form action="${pageContext.request.contextPath }/contract/toPage/login/salesAdminPage" method="post"
		 style="width: 30%; margin: auto">
			<input type="submit" value="返回">
		</form>
		</td>
	</tr>
	</table>
</body>
</html>